/* 为了避免导入模块名与HTML标签名一致时vue警告，所以类似HTML标签的单个词类模块名加前缀v */
import vMain from '../../views/template-item2/item-main2.vue'
import login from '../../views/template-item2/login/login.vue'
import fgetPassword from '../../views/template-item2/login/forget-password.vue' // 忘记密码

// 十大品牌
// import brand from '../../views/template-item2/brand10'
// 品牌列表
// import searchList from '../../views/template-item2/search-list'
// 品牌大全
// import allBrand from '../../views/template-item2/all-brand'
// import daquan from '../../views/template-item2/all-brand/components/daquan.vue'
// import tuijian from '../../views/template-item2/all-brand/components/tuijian.vue'
// import brand2B from '../../views/template-item2/brandInfo/brand2B.vue'// 商户端
// import brand2C from '../../views/template-item2/brandInfo/brand2C.vue'// 用户端
// 品牌认领页面
// import newClaim from '../../views/template-item2/all-brand/newClaim'
// 招商加盟
// import join from '../../views/template-item2/join'

/*
 ***分割线--以上是页面路由
 ***分割线--以下是组件路由
 **先安照自己的意愿写，后期调整下就可以了
 */

console.log('只要引用，我即被编译进入项目谢谢--路由-模板2')
/* 首页 */
import Home from '../../views/template-item2/home'
// 榜上力量
import strength from '../../views/template-item2/strength'
// 个人中心
// import newpersonage from '../../views/template-item2/personage'
import Personage from '../../views/template-item2/personage'
import user from '../../views/template-item2/personage/components/user'
import set from '../../views/template-item2/personage/components/set'
import msg from '../../views/template-item2/personage/components/msg'
import userBrand from '../../views/template-item2/personage/components/user-brand'

// 用户中心-编辑品牌信息
import editBrand from '../../views/template-item2/edit-brand'
// 新闻资讯
import news from '../../views/template-item2/news'
// 关于我们
import about from '../../views/template-item2/about'

const tempt2 = [
  {
    path: '/vMain/',
    component: vMain,
    meta: { title: '首页1' },
    children: [
      {
        path: '',
        name: '首页',
        meta: { title: '首页' },
        component: Home
      },
      /* {
        path: 'searchList',
        name: '搜索结果',
        meta: { title: '搜索结果' },
        component: searchList
      }, */
      /* {
        path: 'allBrand/',
        name: '所有品牌',
        // meta: { title: '所有品牌' },
        component: allBrand,
        children: [
          {
            path: '',
            name: '品牌大全',
            meta: { title: '品牌大全' },
            component: daquan
          },
          {
            path: 'tuijian',
            name: '品牌推荐',
            meta: { title: '品牌推荐' },
            component: tuijian
          },
          {
            path: 'brand2C',
            name: '用户侧',
            meta: { title: '用户侧' },
            component: brand2C
          },
          {
            path: 'brand2B',
            name: '品牌商端',
            meta: { title: '品牌商端' },
            component: brand2B
          }
        ]
      }, */
      /* {
        path: 'join',
        name: '招商加盟',
        meta: { title: '招商加盟' },
        component: join
      }, */
      {
        path: 'personage',
        name: '用户中心最新版',
        meta: { title: '用户中心' },
        component: Personage,
        children: [
          {
            path: '',
            name: '用户资料',
            meta: { title: '用户资料' },
            component: user
          },
          {
            path: 'msg',
            name: '消息中心',
            meta: { title: '消息中心' },
            component: msg
          },
          {
            path: 'set',
            name: '设置中心',
            meta: { title: '设置中心' },
            component: set
          },
          {
            path: 'userBrand',
            component: userBrand
          }
        ]
      },
      {
        path: 'news',
        name: '新闻资讯',
        meta: { title: '新闻资讯' },
        component: news
      },
      {
        path: 'strength',
        name: '榜上力量',
        meta: { title: '榜上力量' },
        component: strength
      },
      {
        path: 'about',
        name: '关于我们',
        meta: { title: '关于我们' },
        component: about
      },
      /* {
        path: 'newClaim',
        name: '品牌认领',
        meta: { title: '品牌认领' },
        component: newClaim
      }, */
      {
        // 品牌编辑页
        path: 'editBrand',
        name: '品牌编辑页',
        meta: { title: '品牌编辑页' },
        component: editBrand
      }
      /* {
        path: 'details',
        name: '新闻详情页',
        meta: { title: '新闻详情页' },
        component: details
      } */
    ]
  }, // vMain
  {
    path: '/login',
    name: '登录',
    meta: { title: '登录' },
    component: login
  },
  {
    path: '/fgetPassword',
    name: '忘记密码',
    meta: { title: '忘记密码' },
    component: fgetPassword
  }
  /* {
    path: '/brand',
    name: '十大品牌',
    meta: { title: '十大品牌' },
    component: brand
  } */
]

export default tempt2
